package com.stone.schedule;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by stone on 2017/8/29.
 */
@SpringBootApplication
@ComponentScan(basePackages = "com.stone.schedule")
public class Application {
	public static void main(String[] args) {
		boolean flag = System.getProperty("spring.profiles.active") == null ;
		if(flag){
			System.setProperty("spring.profiles.active","test");
		}
		SpringApplication.run(Application.class, args);
	}
}
